// 保障机构
import request from "@/api/request";

// 分页查询保障机构
export const select_jg = (params) => {
    return request({
      url: "/essentialdata/po/selectAll",
      method: "post",
      data: params,
    });
  };

//   新增组织机构
  export const add_jg = (params) => {
    return request({
      url: "/essentialdata/po/insert",
      method: "post",
      data: params,
      headers: { "Content-Type": "application/json" },
    });
  };
  

//   逻辑删除保障机构
export const delete_jg = (params) => {
    return request({
      url: "/essentialdata/po/delete/"+params,
      method: "post",
    });
  };

//   查询保障机构详情
export const details_jg = (params) => {
    return request({
      url: "/essentialdata/po/selectDetails/"+params,
      method: "post",
    });
  };


//   修改保障机构信息
export const update_jg = (params) => {
    return request({
      url: "/essentialdata/po/update",
      method: "post",
      data: params,
      headers: { "Content-Type": "application/json" },
    });
  };


//   删除子表信息
export const delete_jgzb = (params) => {
  return request({
    url: `/essentialdata/pod/delete/${params}`,
    method: "post",
    data: params,
  });
};
